package com.zj.web.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId; // 类别ID
    @NotBlank(message = "分类名称不能为空")
    private String categoryName; // 分类名称

    private String icon; // 分类图标URL
    @JsonIgnore
    private MultipartFile icoImgFile;  //上传到oss的真是图片文件

    private String linkUrl; // 跳转链接
    private Integer categoryStatus; // 状态(0-被删除 1-正常)
}
